package com.wwdx.service.impl;

import com.wwdx.wechat.config.BaseWxConfig;
import com.wwdx.wechat.config.test.TestWxMpConfig;
import com.wwdx.wechat.handler.*;
import com.wwdx.wechat.handler.test.*;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author liguoliang
 * @date 2018/1/15 11:46
 */
@Service
public class TestWxService extends BaseWxService {

    @Resource
    private TestWxMpConfig testWxMpConfig;
    @Resource    
    private TestMsgHandler testMsgHandler;
    @Resource
    private TestUnsubscribeHandler testUnsubscribeHandler;
    @Resource
    private TestSubscribeHandler testSubscribeHandler;
    @Resource
    private TestScanHandler testScanHandler;
    @Resource
    private TestMenuHandler testMenuHandler;

    @Override
    protected BaseWxConfig getServerConfig() {
        return testWxMpConfig;
    }

    @Override
    protected AbstractMenuHandler getMenuHandler() {
        return testMenuHandler;
    }

    @Override
    protected AbstractSubscribeHandler getSubscribeHandler() {
        return testSubscribeHandler;
    }

    @Override
    protected AbstractUnsubscribeHandler getUnsubscribeHandler() {
        return testUnsubscribeHandler;
    }

    @Override
    protected AbstractMsgHandler getMsgHandler() {
        return testMsgHandler;
    }

    @Override
    protected AbstractScanHandler getScanHandler() {
        return testScanHandler;
    }
}